<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo $this->pageTitle;?></title>
    <?php /********************    CSS    ******************************/?>
    <?php echo $this->module->registerCss('transdmin.css', 'screen');?>
    <!--[if IE 6]>
    <?php echo $this->module->registerCss('ie6.css', 'screen');?>
    <![endif]-->
    <!--[if IE 7]>
    <?php echo $this->module->registerCss('ie7.css', 'screen');?>
    <![endif]-->

    <?php /**********************    javascripts    ***********************/?>
    <?php //echo $this->module->registerJs('jNice.js', 'screen');?>
    <?php
  		echo CGoogleApi::init();
  		echo CHtml::script(CGoogleApi::load('jquery', '1.4.2'));
        //echo CHtml::script(CGoogleApi::load("jqueryui", "1.8.2"));
    ?>
</head>

<body>
	<div id="wrapper">
    	<h1>
            <a href="<?php echo Yii::app()->homeUrl; ?>">
                <span>Logo</span>
            </a>
        </h1>
        <ul id="mainNav">
        	<li>
                <a href="<?php echo Yii::app()->createUrl('admin/user/profile'); ?>" 
                    <?php if("user" == Yii::app()->controller->id && "profile" == Yii::app()->controller->action->id):?>
                    class="active"
                    <?php endif;?>
                >
                    My Profile
                </a>
            </li>
        	<li>
                <a href="<?php echo Yii::app()->createUrl('admin/user/changepassword'); ?>" 
                    <?php if("user" == Yii::app()->controller->id && "changepassword" == Yii::app()->controller->action->id):?>
                    class="active"
                    <?php endif;?>
                >
                    Change Password
                </a>
            </li>
        	<li class="logout">
                <?php echo CHtml::link(
                    'Logout', 
                    Yii::app()->createUrl('admin/user/logout')
                );?>
            </li>
        </ul>
        <!-- // #end mainNav -->
        
        <div id="containerHolder">
			<div id="container">
        		<div id="sidebar">
                	<ul class="sideNav">
                    	<li>
                            <a href="<?php echo Yii::app()->createUrl('admin/product/index'); ?>" 
                                <?php if("product" == Yii::app()->controller->id && "index" == Yii::app()->controller->action->id):?>
                                class="active"
                                <?php endif;?>
                            >
                                Product
                            </a>
                        </li>
                    	<li>
                            <a href="<?php echo Yii::app()->createUrl('admin/user/list'); ?>" 
                                <?php if("user" == Yii::app()->controller->id && "list" == Yii::app()->controller->action->id):?>
                                class="active"
                                <?php endif;?>
                            >
                                User
                            </a>
                        </li>
                    </ul>
                    <!-- // .sideNav -->
                </div>    
                <!-- // #sidebar -->
                
                <!-- h2 stays for breadcrumbs -->
                <h2>
                    <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                        'links'=>$this->breadcrumbs,
                    )); ?><!-- breadcrumbs -->
                </h2>
                
                <div id="main">
					<h3>Title</h3>
                        <script type="text/javascript">
                            $(document).ready(function(){
                                $("#modelList tr:odd").addClass("odd");
                            });
                        </script>
                    	<table cellpadding="0" cellspacing="0" id="modelList">
                            <?php
                            
                            ?>
							<tr >
                                <td>Vivamus rutrum nibh in felis tristique vulputate</td>
                                <td class="action">
                                    <?php
                                    echo CHtml::link(
                                        'View',
                                        '#',
                                        array(
                                            'title'=>'View',
                                            'class'=>'view',
                                        )
                                    );
                                    ?>
                                    <?php
                                    echo CHtml::link(
                                        'Edit',
                                        '#',
                                        array(
                                            'title'=>'Edit',
                                            'class'=>'edit',
                                        )
                                    );
                                    ?>
                                    <?php
                                    echo CHtml::link(
                                        'Delete',
                                        '#',
                                        array(
                                            'title'=>'Delete',
                                            'class'=>'delete',
                                        )
                                    );
                                    ?>
                                </td>
                            </tr>
                            <tr >
                                <td>Duis adipiscing lorem iaculis nunc</td>
                                <td class="action">
                                    <?php
                                    echo CHtml::link(
                                        'View',
                                        '#',
                                        array(
                                            'title'=>'View',
                                            'class'=>'view',
                                        )
                                    );
                                    ?>
                                    <?php
                                    echo CHtml::link(
                                        'Edit',
                                        '#',
                                        array(
                                            'title'=>'Edit',
                                            'class'=>'edit',
                                        )
                                    );
                                    ?>
                                    <?php
                                    echo CHtml::link(
                                        'Delete',
                                        '#',
                                        array(
                                            'title'=>'Delete',
                                            'class'=>'delete',
                                        )
                                    );
                                    ?>
                                </td>
                            </tr>
                        </table>
					<h3>Another section</h3>
                    	<fieldset>
                        	<p><label>Sample label:</label><input type="text" class="text-long" /></p>
                        	<p><label>Sample label:</label><input type="text" class="text-medium" /><input type="text" class="text-small" /><input type="text" class="text-small" /></p>
                            <p><label>Sample label:</label>
                            <select>
                            	<option>Select one</option>
                            	<option>Select two</option>
                            	<option>Select tree</option>
                            	<option>Select one</option>
                            	<option>Select two</option>
                            	<option>Select tree</option>
                            </select>
                            </p>
                        	<p><label>Sample label:</label><textarea rows="1" cols="1"></textarea></p>
                            <input type="submit" value="Submit Query" />
                        </fieldset>
                </div>
                <!-- // #main -->
                
                <div class="clear"></div>
            </div>
            <!-- // #container -->
        </div>	
        <!-- // #containerHolder -->
        
        <p id="footer">Feel free to use and customize it. <a href="http://www.perspectived.com">Credit is appreciated.</a></p>
    </div>
    <!-- // #wrapper -->
</body>
</html>
